;;;;;;;;;;;;;;;;;;;;;;; c 


;;;;;ac clang  clang client
(add-to-list 'load-path "~/.emacs.d/lisp/program_language/c/auto-complete-clang")
(require 'auto-complete-clang)

(defun my-ac-cc-mode-setup ()
  (setq ac-sources (append '(ac-source-clang ac-source-yasnippet) ac-sources)))
(add-hook 'c-mode-common-hook 'my-ac-cc-mode-setup)



(setq ac-clang-flags
      (mapcar (lambda (item)(concat "-I" item))
              (split-string
               "
 /usr/include/c++/9
 /usr/include/x86_64-linux-gnu/c++/9
 /usr/include/c++/9/backward
 /usr/lib/gcc/x86_64-linux-gnu/9/include
 /usr/local/include
 /usr/include/x86_64-linux-gnu
 /usr/include
"
               )))


(require 'cc-mode)
(load-file "~/.emacs.d/lisp/program_language/c/xcscope.el")
(require 'xcscope)


(evil-leader/set-key
  "fs" 'cscope-find-this-symbol)



(defun c_path_src ()
  (interactive)
  (dired-other-window  "/home/zdq/c_work/src") )


(evil-leader/set-key
  "cps"                          'c_path_src)



(message "c")
(provide 'c)


